package com.itzou.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itzou.domain.ScheduledTask;
import org.apache.ibatis.annotations.Param;

public interface ScheduledTaskMapper extends BaseMapper<ScheduledTask> {
    // 根据serviceName和serviceMethod修改定时任务状态
    void updateStatus0(@Param("serviceName") String serviceName, @Param("serviceMethod") String serviceMethod);
    void updateStatus1(@Param("serviceName") String serviceName, @Param("serviceMethod") String serviceMethod);

    // 根据serviceName和serviceMethod查询定时任务
    ScheduledTask selectByServiceNameAndServiceMethod(@Param("serviceName") String serviceName,@Param("serviceMethod") String serviceMethod);

}
